package com.railway.field.service;

import com.railway.field.dao.StorageGirderDao;
import com.railway.field.entity.StorageGirder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class StorageGirderService implements StorageGirderDao {
    @Autowired
    private StorageGirderDao storageGirderDao;

    //查询存梁区信息
    @Override
    public List<StorageGirder> FindStorageGirder(Map map) {
        return storageGirderDao.FindStorageGirder(map);
    }

    //台座总数
    @Override
    public int CountAll(Map map) {
        return storageGirderDao.CountAll(map);
    }

    //占用数量
    @Override
    public int CountByState_Zy(Map map) {
        return storageGirderDao.CountByState_Zy(map);
    }

    //空闲数量
    @Override
    public int CountByState_Kx(Map map) {
        return storageGirderDao.CountByState_Kx(map);
    }
}
